package gewu.suleju.sevice.imp;

import gewu.suleju.dao.iml.IHousePicDao;
import gewu.suleju.model.pojo.HousePic;
import gewu.suleju.sevice.IHousePicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class HousePicServiceImp implements IHousePicService {
    @Autowired
    IHousePicDao iHousePicDao;
    @Override
    public List<HousePic> findHousePicsByHouseInforId(Integer id) {
        return iHousePicDao.findHousePicsByHouseInforId(id);
    }
    @Override
    public List<String> findPicStringsByHousePicList(HousePic picStrings) {
        List<String> picss = new ArrayList<>();

        picss.add(picStrings.getHousePicAddress());

        return picss;
    }
}
